package cn.com.dal.dao.impl.cs;

import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.com.dal.dao.cs.NewProjectDAO;
import cn.com.dal.dataobject.cs.NewProjectDO;
import cn.com.support.dal.DAOException;
import cn.com.support.dal.DefaultDAO;
@Repository
public class NewProjectDAOImpl<T extends NewProjectDO> extends DefaultDAO<T>
		implements NewProjectDAO<T> {

	@Override
	protected String getSatementPackage() {
		return "cn.com.dal.dao.cs.NewProjectDAO";
	}

	@Override
	public Long selectOutsidecost(Map<Object, Object> params)
			throws DAOException {
		try {
			return getSqlSession().selectOne(
					getSatementPackage() + ".selectOutsidecost", params);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	@Override
	public Long selectConferencecost(Map<Object, Object> params)
			throws DAOException {
		try {
			return getSqlSession().selectOne(
					getSatementPackage() + ".selectConferencecost", params);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
